import request from '@/utils/request'

// 新增视频
export function addVideo(data){
    return request({
        url: '/vms/video/info/add',
        method: 'post',
        data: data
    })
}

// 更新视频
export function updateVideo(data){
    return request({
        url: '/vms/video/info/update',
        method: 'post',
        data: data
    })
}



// 获取分页视频类型列表
export function getPaginationList(params){
    return request({
        url: '/vms/video/info/getPaginationList',
        method: 'get',
        params: params
    })
}

// 获取分页视频类型列表
export function getInfoByTxUrl(videoDraId,url){
    return request({
        url: '/vms/video/info/getInfoByTxUrl',
        method: 'get',
        params: {'videoDraId':videoDraId, 'url':url}
    })
}

// id 获取视频信息
export function getById(id){
    return request({
        url: '/vms/video/info/getById',
        method: 'get',
        params: {id}
    })
}